package com.taotao.job.core.trigger.context;

import com.alibaba.fastjson.JSON;
import com.taotao.job.core.enums.StartType;
import lombok.Builder;
import lombok.Getter;

/**
 * 触发特征
 *
 * @author fanbeibei
 * @version 1.0
 * @date 2021/2/4 14:16
 */
@Builder
@Getter
public class TriggerFeature {
    /**
     * 任务启动类型
     */
    private StartType startType;

    /**
     * 是否触发下级
     */
    private boolean triggerPostJob = true;
    /**
     * 是否忽略下级的cron
     */
    private boolean ignorePostJobCron = false;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}